# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-google-auth-httplib2
_pkgname=google-auth-httplib2
pkgver=0.0.3
pkgrel=5
pkgdesc='Google Authentication Library: httplib2 transport'
url='https://pypi.org/project/google-auth-httplib2/#files'
arch=('any')
license=('Apache')
depends=('python2' 'python2-httplib2' 'python2-six' 'python2-google-auth')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('da9d280f2ab3f9d99e2f011d56d94b09a12e85a5a1e9f78933a93cc57c7778d9002e1a023552a2611283da696334ba795cd7e8003b311db05e9b6b40aca34dc7')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

